package com.api.entitis;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 简历
 * @date 2022/02/17 08:02:07
 */
@Data
@ApiModel("简历")
@TableName("resume")
@EqualsAndHashCode(callSuper = false)
public class Resume implements Serializable {

    @TableId(type = IdType.INPUT)
    @ApiModelProperty("主键")
    private String id;


    @ApiModelProperty("标题")
    private String title;


    @ApiModelProperty("求职类型")
    private String type;


    @ApiModelProperty("个人技能描述")
    private String content;


    @ApiModelProperty("附件")
    @TableField(exist = false)
    private FileInfo fileInfo;


    @ApiModelProperty("创建人")
    private String createBy;

    @TableField(exist = false)
    @ApiModelProperty("创建人信息")
    private User userInfo;


    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date createTime;


    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("修改时间")
    private Date updateTime;

}
